home *** CD-ROM | disk | FTP | other *** search
Gui4CLI script | 1998-06-24 | 1.6 KB | 85 lines |
- G4C
-
- winbig -1 -1 200 78 ""
- winsmall 0 -1 200 78
- wintype 11110000
- winout nil:
- varpath "climaster/*/routine.g"
-
- xonload
- set editor sys:dtp/bed/bed
- failat 5
- guiopen format.g
-
- xonopen
- lvuse format.g 1
- gosub routine.g drives
- update format.g 1 0
- update format.g 4 1
- update format.g 5 0
- update format.g 6 0
- update format.g 7 0
- setwintitle format.g "Disk Format "
- setgad format.g 8 off
- update format.g 2 $source
-
- xonclose
- lvuse climaster $cm_srce
- failat 10
- guiquit format.g
-
- xonrmb
- guiclose format.g
-
- xonfail
- ezreq "Error During Format." Okay ""
- guiclose format.g
-
- box 80 26 120 52 out button
- box 0 13 80 13 out button
- ctext 20 14 Drive: topaz.font 8 2 0 000
-
- xlistview 0 26 80 56 "" source "" 0 txt
- gadid 1
- gadfont topaz.font 8 000
- lvuse climaster $cm_srce
- update format.g 2 $source
-
- text 80 13 50 13 "" 4 box
- gadid 2
- gadtxt center
-
- xtextin 0 0 200 13 "" nwname "" 30
- gadid 3
- if $nwname = ""
- ezreq "You MUST supply a name." Okay ""
- stop
- endif
- setgad format.g 8 on
-
- xcheckbox 90 30 26 11 "FFS" dop_fsys "ffs" "" on
- gadid 4
- gadtitle right
-
- xcheckbox 90 41 26 11 "DirCache" dop_dcach "dircache" "" off
- gadid 5
- gadtitle right
-
- xcheckbox 90 52 26 11 "Trashcan" dop_tcan "" "noicons" on
- gadid 6
- gadtitle right
-
- xcheckbox 90 63 26 11 "Quick" dop_quck "quick" "" off
- gadid 7
- gadtitle right
-
- xbutton 130 13 70 13 Start
- gadid 8
- setwintitle format.g "Formatting... "
- launch 1 'sys:system/format drive $source name "$nwname" $dop_tcan $dop_fsys $dop_dcach $dop_quck'
- xonreturn 1
- nwname = ""
- update format.g 3 $nwname
- setgad format.g 8 off
- setwintitle format.g "Disk Format "
-